NodeDataType
this must be a Northwoods.GoXam.Model.GraphLinksModelNodeData<NodeKey> with a public zero-argument constructor
LinkDataType
this must be a Northwoods.GoXam.Model.GraphLinksModelLinkData<NodeKey,PortKey> with a public zero-argument constructor
Northwoods.GoSilverlight 1.3.5 Assembly
Load<NodeDataType,LinkDataType>(XContainer,XName,XName) Method
See Also  Send Feedback
Northwoods.GoXam.Model Namespace > GraphLinksModel<NodeType,NodeKey,PortKey,LinkType> Class > Load Method : Load<NodeDataType,LinkDataType>(XContainer,XName,XName) Method

root
the XContainer holding all of the data
nodename
the name of each XElement holding node data
linkname
the name of each XElement holding link data
Given a Linq for XML XContainer holding node and link data, replace this model's NodesSource and LinksSource collections with collections of new node data and new link data.

Syntax

Visual Basic (Declaration) 
Public Overloads Sub Load
     (Of NodeDataType As GraphLinksModelNodeData(Of NodeKey),
     LinkDataType As GraphLinksModelLinkData(Of NodeKey,PortKey))( _
   ByVal root As XContainer, _
   ByVal nodename As XName, _
   ByVal linkname As XName _
) 
C# 
public void Load<NodeDataType,LinkDataType>( 
   XContainer root,
   XName nodename,
   XName linkname
)where NodeDataType: GraphLinksModelNodeData<NodeKey>
    where LinkDataType: GraphLinksModelLinkData<NodeKey,PortKey>

Parameters

root
the XContainer holding all of the data
nodename
the name of each XElement holding node data
linkname
the name of each XElement holding link data

Type Parameters

NodeDataType
this must be a Northwoods.GoXam.Model.GraphLinksModelNodeData<NodeKey> with a public zero-argument constructor
LinkDataType
this must be a Northwoods.GoXam.Model.GraphLinksModelLinkData<NodeKey,PortKey> with a public zero-argument constructor

Remarks

All of the changes to this model are performed within a transaction.

This does not set the IsModified property to false. You may wish to do so, depending on your application requirements. You might also wish to clear the UndoManager.

Requirements

See Also

© 2012 All Rights Reserved.